<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<script src="easeljs.min.js"></script>
<body>
    
        <canvas id="canvass" width="500px" height="500px"></canvas>
</body>

<script>
    var canvass;
    var stage;
    var txt;
    var count = 0;
window.onload = function () {
    canvass = document.getElementById('canvass');
    stage = new createjs.Stage("canvass");
    txt = new createjs.Text("Hello World", "20px Arial", "#ff7700");
    stage.addChild(txt);

    createjs.Ticker.setFPS(30);
    createjs.Ticker.addEventListener("tick",tick);
}

function tick(e) {
    count++;
    txt.text = "Text->"+count+"!";
    stage.update();
        
}

</script>
</html>